/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.domain.req;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import org.hibernate.validator.constraints.Length;

import java.time.LocalDateTime;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *
 *
 * @author yzh
 * @date 2021-3-29
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class SaveLearnRecordRequest {
	/**
	 * 课程Id
	 */
	@NotNull
	private Long lessonId;
	/**
	 * 课程名称
	 */
	private String lessonName;
	/**
	 * 课程类型：0-未定义，1-文档
	 */
	@NotNull @Max(127)
	private Integer lessonType;
	/**
	 * 学习时长（秒）
	 */
	@NotNull
	private Integer learnDuration;

	/**
	 * 培训Id
	 */
	private Long trainId;

}
